﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;

namespace Presentation
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        public bool WtfPresent { get; private set; }
        protected override void OnStartup(StartupEventArgs e)
        {
            ArgComparer comparer = new ArgComparer();
            WtfPresent = e.Args.Contains("-wtf", comparer);
            base.OnStartup(e);
        }

        private class ArgComparer : IEqualityComparer<string>
        {

            public bool Equals(string x, string y)
            {
                return x.ToLower() == y.ToLower();
            }

            public int GetHashCode(string obj)
            {
                return obj.ToLower().GetHashCode();
            }
        }
    }
}
